//
//  YMVoiceMessageBody.h
//  YMIM
//
//  Created by reyzhang on 2022/3/24.
//

#import "YMMessageBody.h"
#import <CoreGraphics/CoreGraphics.h>
NS_ASSUME_NONNULL_BEGIN

@interface YMVoiceMessageBody : YMMessageBody
@property (nonatomic, assign) CGFloat duration; //音频时长


/**
 * 创建一个音频消息体
 */
- (instancetype)initWithVoiceUrl:(NSString *)voiceUrl
                        duration:(CGFloat)duration;

+ (instancetype)bodyWithVoiceUrl:(NSString *)voiceUrl
                        duration:(CGFloat)duration;

@end

NS_ASSUME_NONNULL_END
